package com.xbongbong.pro.quatation.pojo.dto;

import com.alibaba.fastjson.JSONArray;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.paas.toolbox.wrap.QueryIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;

/**
 *
 * @author 刘阳
 * @date 2019/8/14 7:34 PM
 * @since v1.0
 * @version v1.0
 */
@Getter
@Setter
@ToString
public class QuotationHistoryDTO extends BaseDTO {
    private static final long serialVersionUID = -1081259467424673614L;

    /**
     * 数据id
     */
    @NotNull(message = "{dto.msg.quotationHistory.dataId.NotNull}")
    private Long dataId;

    /**
     * 分页当前页
     */
    @NotNull(message = "{dto.msg.quotationHistory.page.NotNull}")
    @Getter(onMethod_ = {@QueryIgnore})
    private Integer page;

    /**
     * 分页每页记录数
     */
    @NotNull(message = "{dto.msg.quotationHistory.pageSize.NotNull}")
    @Getter(onMethod_ = {@QueryIgnore})
    private Integer pageSize;

    /**
     * 分组ID 0为全部
     */
    @NotNull(message = "{dto.msg.quotationHistory.appId.NotNull}")
    private Long appId;

    @NotNull(message = "{dto.msg.quotationHistory.saasMark.NotNull}")
    @DecimalMin(value = "1", message = "{dto.msg.quotationHistory.saasMark.DecimalMin}")
    @DecimalMax(value = "2", message = "{dto.msg.quotationHistory.saasMark.DecimalMax}")
    private Integer saasMark;

    /**
     * 业务类型
     */
    private Integer businessType;

    /**
     * 菜单id
     */
    private Long menuId;

    /**
     * 表单id
     */
    private Long formId;

    /**
     * 时间
     */
    private JSONArray addTime;

}
